package test.comparable_comparator.bean;

/**
 * Created by linshuo on 2018/4/10.
 */
public class Apple {
    private int age;
    private String type;

    public Apple(int age, String type) {
        this.age = age;
        this.type = type;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return "Apple{" +
                "age=" + age +
                ", type='" + type + '\'' +
                '}';
    }
}
